//
// Created by bing on 2021/7/10.
//

#include "ClassTemplateDemo.h"

template<class K, class V>
bool Pair<K, V>::operator<(Pair<K, V> &pair) {
    return this->value < pair.value;
}

void ClassTemplateDemo::main() {
    Pair<string, int> p1("xiaoming", 99);
    Pair<string, int> p2("xiaowang", 100);
    cout << (p1 < p2);
}